package cn.taobaoke.restful.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 推广位表
 *
 * @author yangzuo
 * @since 2017-04-06
 */
@Setter
@Getter
@ToString
@Table(name = "tb_pid")
@Entity
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PIDEntity implements Serializable {

    @Id
    @GeneratedValue
    private Long id;

    @Column
    private String pid;

    @Column
    private Boolean isAssigned;

    @Column
    private String account;

    @Column
    private Long agentId;

//    @Column
//    private Long domainId;

//    public PIDEntity() {}
//
//    public PIDEntity(String pid, Boolean isAssigned, Long domainId) {
//        this.pid = pid;
//        this.isAssigned = isAssigned;
//        this.domainId = domainId;
//    }
}
